package com.feiyu.logistics.feign;

import com.feiyu.logistics.dto.PaymentDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Author: Doate
 * @Date: Created in 2021/4/16 1:20
 * @Description:
 */

@Component
@FeignClient("feiyumall-paymentAndcredit")
public interface PaymentAndCreditFeign {

    @PostMapping("/updateBuyerCreditScore")
    public boolean updateBuyerCreditScore(@RequestBody String orderId);

    @PostMapping("/payAmount")
    public boolean payAmount(@RequestBody PaymentDto dto);
}
